package com.offcn.webui.service.impl;

import com.offcn.common.response.AppResponse;
import com.offcn.webui.service.ProjectFeignService;
import com.offcn.webui.vo.resp.ProjectDetailVo;
import com.offcn.webui.vo.resp.ProjectVo;
import com.offcn.webui.vo.resp.TReturn;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ProjectFeignServiceImpl implements ProjectFeignService {
    @Override
    public AppResponse<List<ProjectVo>> getAllProject() {
        AppResponse<List<ProjectVo>> response = AppResponse.fail(null);
        response.setMsg("远程调用所有的程序失败");
        return response;
    }

    @Override
    public AppResponse<ProjectDetailVo> getProjectById(Integer projectId) {
        AppResponse<ProjectDetailVo> response = AppResponse.fail(null);
        response.setMsg("远程调用 项目详情 失败");
        return response;
    }

    @Override
    public AppResponse<TReturn> getReturnById(Integer returnId) {
        AppResponse<TReturn>  response = AppResponse.fail(null);
        response.setMsg("远程调用 回报信息 失败");
        return response;
    }
}
